<!DOCTYPE html>
<html>
    <head>
        <title>Installation - Subscription Feed for YouTube</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="js/settings.js"></script>
        <script type="text/javascript" src="js/get.js"></script>
        <script type="text/javascript" src="js/oauth2.js"></script>
        <script type="text/javascript" src="js/install.js"></script>
        <link rel="stylesheet" type="text/css" href="style.css" media="all" />
    </head>
    <body class="options install">
        <form>
            <fieldset>
                <legend>Subscription Feed for YouTube - Installation</legend>
                
                <p>Thank you for installing this Google Chrome extension!</p>
                
                <p>
                    There are just a few things we need to take care of before
                    you start using this extensions.
                </p>
                
                <p>
                    Please make sure you are signed in Chrome with your Google
                    account you use for YouTube. You may verify this by opening
                    the Chrome menu (the icon in the top-right corner of
                    Chrome) and selecting <strong>Settings</strong>.
                    
                    <small>
                        I realize that this is might be limitting for some of
                        the users and I'm working on a solution.
                    </small>
                </p>
                
                <p>
                    Please <a href="#" id="requestOAuth">click here</a> to
                    grant OAuth authorization to this extension for accessing
                    your YouTube subscriptions.
                </p>
                
                <p id="OAuthError" style="display: none;">
                    Authorization has failed.
                    <span id="OAuthError-reported"></span>
                    <span id="OAuthError-unknown" style="display: none;">
                        Unfortunately, Chrome did not tell us why it has
                        failed. You might want to report this problem to
                        <a href="https://code.google.com/p/chromium/issues/list" target="_blank">Google</a>
                        or <a href="http://code.google.com/p/youtube-subscription-feed/issues/entry" target="_blank">me</a>.
                    </span>
                </p>
                
                <p id="OAuthSuccess" style="display: none;">
                    Authorization complete. Testing access to YouTube...
                </p>
                
                <p id="YouTubeError" style="display: none;">
                    The extension was unable to access your YouTube account
                    because the following error has occurred:
                    <span id="YouTubeError-text"></span>
                </p>
                
                <p id="done" class="bold" style="display: none;">
                    We're done! You may want to display and modify the
                    <a href="#" id="showOptions">extension's settings</a>.
                </p>
            </fieldset>
        </form>
    </body>
</html>